// FileInputDlg.cpp : implementation file
//

#include "stdafx.h"
#include "resource.h"
#include "FileInputDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CFileInputDlg dialog


CFileInputDlg::CFileInputDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CFileInputDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFileInputDlg)
	m_strFileName = _T("");
	//}}AFX_DATA_INIT
}


void CFileInputDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFileInputDlg)
	DDX_Text(pDX, IDC_EDIT_FILENAME, m_strFileName);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CFileInputDlg, CDialog)
	//{{AFX_MSG_MAP(CFileInputDlg)
	ON_BN_CLICKED(IDC_BUTTON_BROWSE, OnButtonBrowse)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFileInputDlg message handlers

void CFileInputDlg::OnButtonBrowse() 
{
	CFileDialog fd( TRUE, NULL, m_strFileName );
	if( fd.DoModal() == IDOK )
	{
		m_strFileName = fd.GetPathName();
		UpdateData( FALSE );
	}
	// TODO: Add your control notification handler code here
	
}
